package co.baiku.boot.config;

import co.baiku.boot.cache.type.CacheEngine;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "ajavaer.weixin")
@ComponentScan(basePackages = {"co.baiku.boot.config", "co.baiku.boot.weixin"})
@EnableConfigurationProperties({WeixinPublicConfig.class, WeixinOpenConfig.class, WeixinJsSDKConfig.class, WeixinSnsConfig.class, WeixinMiniProgramConfig.class, QyWeixinAppConfig.class})
public class WeixinConfig {
    private Boolean debug = false;


    private CacheEngine cacheEngine = CacheEngine.caffeine;

    public WeixinConfig() {
    }

    public WeixinConfig(Boolean debug, CacheEngine cacheEngine) {
        this.debug = debug;
        this.cacheEngine = cacheEngine;
    }

    public Boolean getDebug() {
        return debug;
    }

    public void setDebug(Boolean debug) {
        this.debug = debug;
    }

    public CacheEngine getCacheEngine() {
        return cacheEngine;
    }

    public void setCacheEngine(CacheEngine cacheEngine) {
        this.cacheEngine = cacheEngine;
    }

}
